<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:27:"app/index/view/content.html";i:1615109898;s:26:"app/index/view/header.html";i:1615109898;s:26:"app/index/view/footer.html";i:1615109898;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="author" content="@梦雨(QQ50361804)" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>我的内容 - <?php echo set('title'); ?></title>
    <meta name="keywords" content="<?php echo set('keywords'); ?>">
    <meta name="description" content="<?php echo set('description'); ?>">
     <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="/public/admin/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/public/admin/css/font.css">
	<link href="/public/css/default.css" rel="stylesheet">
	<script src="/public/js/jquery-3.4.1.min.js"></script>
    <script src="/public/admin/lib/layui/layui.js"></script>
    <link rel="stylesheet" href="/app/index/view/public/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/app/index/view/public/css/uid.css?v=<?php echo set('banben'); ?>" />
    <?php echo hook('userheader'); ?>
</head>
<body class="indexx">
    <main class="main pb-20">
        <div class="header-image">
            <div class="js-parallax"></div>
        </div>
        <div class="container gutter-top">
            <!-- Header -->
            <header class="header_uid box">
                <div class="header__left">
                    <div class="header__photo">
                        <img class="header__photo-img" src="<?php echo user('userhead'); ?>" alt="<?php echo user('username'); ?>">
                    </div>
                    <div class="header__base-info">
                        <h4 class="title titl--h4"><?php echo user('username'); ?></h4>
                        <ul class="header__social">
                            <li>
                                <div class="addqa">余额：<?php echo user('point'); ?><?php echo set('jifen',2); ?></div>
                            </li>
                            <li>
                                <a href="<?php echo url('index/user/uid',array('id'=>user('userid'))); ?>" class="addqun" target="_blank">我的主页</a>
                            </li>
                            <li>
                                <a  url="<?php echo url('index/api/logout'); ?>" name="确实要退出登录吗" href="javascript:;" class="add-listing dark-bg del_t">退出</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="header__right">
                    <div class="status"><?php echo dingyi(user('description'),'没有任何介绍'); ?></div>
                </div>
            </header>
            <div class="row sticky-parent">
                <aside class="col-12 col-md-12 col-lg-2">
                    <div class="sidebar box sticky-column">
                        <ul class="nav fanhui">
                            <li class="nav__item">
                                <a href="/" target="_blank">
                                    <i class="layui-icon">&#xe609;</i>
                                    返回首页
                                </a>
                            </li> 
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'set') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/set'); ?>">
                                    <i class="layui-icon">&#xe620;</i>
                                    基本设置
                                </a>
                            </li>
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'jifen') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/jifen'); ?>">
                                    <i class="layui-icon">&#xe65e;</i>
                                    <?php echo set('jifen',2); ?>管理
                                </a>
                            </li> 
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'content') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/content'); ?>">
                                    <i class="layui-icon">&#xe600;</i>
                                    我的内容
                                </a>
                            </li> 
                            <li class="nav__item">
                                <a href="javascript:;" id="gengduo">
                                    <i class="layui-icon">&#xe65f;</i>
                                    更  多
                                </a>
                            </li> 
                        </ul>
                        <ul class="nav genduo" style="display:none;">
                            <li class="nav__item">
                                <a <?php if(strpos(get_url(), 'add') !== false): ?>class="active"<?php endif; ?> href="<?php echo url('index/user/add'); ?>">
                                    <i class="layui-icon">&#xe672;</i>
                                    发布内容
                                </a>
                            </li> 
                            <!--会员中心菜单钩子-->
                            <?php echo hook('userheadernav'); ?>
                            <li class="nav__item">
                                <a href="javascript:;" id="fanhui">
                                    <i class="layui-icon">&#xe65c;</i>
                                    返回
                                </a>
                            </li> 
                        </ul>
                    </div>
                </aside>
                <!-- 内容开始 -->
                <div class="col-12 col-md-12 col-lg-10">
                    <div class="box box-content" style="min-height: 625px;">
                        <div class="filterspace__controls">
                            <ul class="nav nav-pills" id="pills-tab" role="tablist">
                                <li class="nav-item">
                                    <a href="<?php echo url('index/user/content'); ?>" class="nav-link <?php if(strpos(get_url(), 'content.html') !== false): ?>active<?php endif; if(strpos(get_url(), 'content-m') !== false): ?>active<?php endif; ?>">我的投稿</a>
                                </li>
                                <li class="nav-item">
                                    <a href="<?php echo url('index/user/content',array('id'=>'2')); ?>" class="nav-link <?php if(get('id','1')=='2'): ?>active<?php endif; ?>">我的收藏</a>
                                </li>
                            </ul>
                        </div>    
                        <!--内容-->
                        <?php if(strpos(get_url(), 'content.html') !== false || strpos(get_url(), 'content-m') !== false): ?>
                        <div class="layui-tab layui-tab-brief">
                            <ul class="layui-tab-title">
                                <li <?php if(get('model','1')=='1'): ?>class="layui-this"<?php endif; ?>>
                                    <a href="<?php echo url('index/user/content'); ?>">文章</a>
                                </li>   
                                <?php $_result=fun_s('model',array('open'=>1),'id desc',10,false);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                <li <?php if(input('model')==$vo['name']): ?>class="layui-this"<?php endif; ?>>
                                <a href="<?php echo url('index/user/content'); ?>?model=<?php echo $vo['name']; ?>"><?php echo $vo['title']; ?></a>
                                </li>
                                 <?php endforeach; endif; else: echo "" ;endif; ?> 
                            </ul>
                            <div class="layui-tab-content"></div>
                        </div>      
                        <script>
                        layui.use('element', function(){
                          var element = layui.element;
                        });
                        </script>
                        <?php $_result=fun_s(get('model','html'),array('uid'=>session('userid')),'time desc',10,false);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "
                        <div align='center' style='margin: 0 auto;'>
                            <img src='/public/img/empty.jpg' height='200' />
                            <h4 class='pt-20'>
                               没有更多的记录
                               </h4>
                        </div>" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <div class="sides_list_property large mt-10">
                            <div class="sides_list_property_detail">
                                <h4><a target="_blank" style="font-size: 16px;color: #2D3954;" href="<?php if($vo['m']=='html'): ?><?php echo url('index/index/html',array('id'=>$vo['id'])); else: ?><?php echo url('index/model/html',array('model'=>$vo['m'],'id'=>$vo['id'])); endif; ?>"><?php echo $vo['title']; ?></a></h4><span>
                                <div class="lists_property_price">
                                    <div class="lists_property_price_value first">
                                        <?php if($vo['open']==1): ?><span class="xg" href="javascript:;">正常</span><?php else: ?><span class="xg" href="javascript:;">关闭</span><?php endif; ?><span class="price_status">发布时间：<?php echo date("Y-m-d",$vo['time']); ?></span>
                                    </div>
                                </div>      
                            </div>
                        </div> 
                        <div class="sides_list_property large mt-10">
                            <a href="<?php echo url('index/user/add',array('id'=>$vo['id'])); ?>?model=<?php echo get('model','html'); ?>" class="layui-btn layui-btn-sm mt-1 ml-1">编辑</a>
                            <?php if($vo['open']!=1): ?>
                            <button class="layui-btn layui-btn-sm layui-btn-danger mt-1 ml-1 del_t" name="确定要这条信息吗？" url="<?php echo url('index/api/deletes',array('model'=>get('model','html'),'id'=>$vo['id'])); ?>">删除</button>
                            <?php endif; ?>
                        </div> 
                        <?php endforeach; endif; else: echo "
                        <div align='center' style='margin: 0 auto;'>
                            <img src='/public/img/empty.jpg' height='200' />
                            <h4 class='pt-20'>
                               没有更多的记录
                               </h4>
                        </div>" ;endif; ?> 
                        <!--分页-->
                        <?php echo fun_s(get('model','html'),array('uid'=>session('userid')),'time desc',10,false)->render(); endif; if(get('id','1')=='2'): $_result=fun_s('shoucang',array('uid'=>session('userid')),'time desc',6,false);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "
                        <div align='center' style='margin: 0 auto;'>
                            <img src='/public/img/empty.jpg' height='200' />
                            <h4 class='pt-20'>
                               没有更多的记录
                               </h4>
                        </div>" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                        <div class="sides_list_property large mt-10">
                            <div class="sides_list_property_detail">
                                <h4><a target="_blank" style="font-size: 16px;color: #2D3954;" href="<?php if(dingyi($vo['m'],'html')=='html'): ?><?php echo url('index/index/html',array('id'=>fun_sc_p(dingyi($vo['m'],'html'), array('id'=>$vo['tid']), 'id'))); else: ?><?php echo url('index/model/html',array('model'=>dingyi($vo['m'],'html'),'id'=>fun_sc_p(dingyi($vo['m'],'html'), array('id'=>$vo['tid']), 'id'))); endif; ?>"><?php echo fun_sc_p(dingyi($vo['m'],'html'), array('id'=>$vo['tid']), 'title'); ?></a></h4><span>
                                <div class="lists_property_types mt-10">
                                    <div class="property_types_vlix" style="border-radius: 5px;padding: 10px;"><?php echo cut_c(fun_sc_p(dingyi($vo['m'],'html'), array('id'=>$vo['tid']), 'content'),50); ?></div>
                                </div>
                                
                                <div class="lists_property_price">
                                    <div class="lists_property_price_value first">
                                        <span class="price_status">收藏时间：<?php echo date("Y-m-d",$vo['time']); ?></span>
                                        <span class="price_status">[<?php echo dingyi(fun_model(dingyi($vo['m'],'html'),'title'),'文章'); ?>]</span>
                                    </div>
                                    <span class="post-date ml-0 del_t" name="确定要这条信息吗？" url="<?php echo url('index/api/deletes',array('model'=>'shoucang','id'=>$vo['id'])); ?>"><i class="iconfont">&#xe69a;</i> 删除</span>
                                </div> 
                            </div>
                        </div>  
                        <?php endforeach; endif; else: echo "
                        <div align='center' style='margin: 0 auto;'>
                            <img src='/public/img/empty.jpg' height='200' />
                            <h4 class='pt-20'>
                               没有更多的记录
                               </h4>
                        </div>" ;endif; ?> 
                        <!--分页-->
                        <?php echo fun_s('shoucang',array('uid'=>session('userid')),'time desc',6,false)->render(); endif; ?>
                        <div class="clearfix"></div>
                    </div> 
                </div>
            </div>
        </div>
    </main>    
    <div class="h66"></div>
    <?php echo hook('usercontent'); ?>
    	</body>
	<script type="text/javascript" src="/public/js/form_ajax.js?v=<?php echo set('banben'); ?>"></script>
    <script src="/app/index/view/public/js/plugins.min.js"></script>
    <script src="/app/index/view/public/js/common.js"></script>
    <script>
    $(document).ready(function(){
        $('#gengduo').on('click', function(){
            $(".fanhui").hide(500);
            $(".genduo").show(500);
        });
        $('#fanhui').on('click', function(){
            $(".fanhui").show(500);
            $(".genduo").hide(500);
        });
    });    
    </script>
    <?php echo hook('userfooter'); ?>
</html>
 
 
 

 
